package com.leiduoduo.oms.dao;

import com.leiduoduo.oms.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OrderDao {
    boolean addOrder(Order order);
    boolean delOrder(Order order);
    boolean upOrder(Order order);
    boolean upOrderState(Order order);
    Order getOrderById(int id);
    List<Order> getOrderList();
    int getOrderListCount(Map<String, Object> map);
    List<Order> getOrderListByPage(Map<String, Object> map);

}
